//
//  LRXPocketModle.m
//  路人侠
//
//  Created by 王涛 on 16/4/27.
//  Copyright © 2016年 zhangxulong. All rights reserved.
//

#import "LRXPocketModle.h"
@implementation LRXPocketModle
- (instancetype)initMyPocketWith:(NSDictionary *)pocketDic
{
    if (self = [super init]) {
        
        CGFloat pp = [pocketDic[@"total_price"] floatValue];
        self.total_price = [NSString stringWithFormat:@"%.2lf",pp / 100];
        self.date =  pocketDic[@"updated_at"];
    }
    return self;
}
+ (instancetype)myPocketModel:(NSDictionary *)pocketDic
{
    return [[LRXPocketModle alloc] initMyPocketWith:pocketDic];
}

@end
